// index.js
// const app = getApp()
const { envList } = require('../../../envList.js');

Page({
  data: {
    showUploadTip: false,
    powerList: [
      {
        title: '定义全局主题色CSS',
        tag: 'new',
        url: '/pages/package/themeColor/index',
      },
      {
        title: '分页组件',
        tag: 'new',
        url: '/pages/package/pageView/index',
      },
      {
        title: '动态配置式表单',
        tag: 'new',
        url: '/pages/package/akFormReadMe/index',
      },
      {
        title: '自定义导航栏',
        url: '/pages/package/navigationBar/index',
      },
      {
        title: '富文本编辑',
        url: '/pages/package/akEditor/index',
      },
      {
        title: '标签选择器',
        url: '/pages/package/radioPicker/index',
      },
      {
        title: '步进step',
        url: '/pages/package/akSteps/index',
      },
      {
        title: '搜索栏',
        url: '/pages/package/searchBar/index',
      },
      {
        title: '顶部标签栏',
        url: '/pages/package/tagTab/index',
      },
      {
        title: '画板（根据标签生成图片）',
        url: '/pages/package/akDrawView/index',
      },
    ],
    envList,
    selectedEnv: envList?.[0],
    haveCreateCollection: false,
  },
  onClickPowerInfo(e) {
    const index = e.currentTarget.dataset.index;
    const {url} = this.data.powerList[index]
    wx.navigateTo({
      url,
    })
  },

});
